<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class quanly extends CI_Controller {
	public function __construct() {
		parent::__construct();
		date_default_timezone_set("Asia/Ho_Chi_Minh");
		$this->load->library('grocery_CRUD');
	}
 	
 	public function index() {
 		$this->load->view("view_header");
		$this->load->view("view_login");
		$this->load->view("view_body_quanly");
		$this->load->view("view_footer");
 	}

    function output($output = null)
    {
        $this->load->view('our_template.php',$output);    
    }

    public function giaovien()
    {
        $this->grocery_crud->set_table('giaovien');
        $output = $this->grocery_crud->render();
        $this->output($output);        
    }
    public function baigiang()
    {
        $this->grocery_crud->set_table('baigiang');
        $output = $this->grocery_crud->render();
        $this->output($output);        
    }
    public function monhoc()
    {
        $this->grocery_crud->set_table('monhoc');
        $output = $this->grocery_crud->render();
        $this->output($output);        
    }
    public function diemmonhoc()
    {
        $this->grocery_crud->set_table('diemmonhoc');
        $output = $this->grocery_crud->render();
        $this->output($output);        
    }
}